{if $params.action=="index"}

	{if $Acl.mvc.control.widgets.add}
		<p><a href="/control/widgets/add/" class="ui-button ui-button-text-icons ui-state-default ui-corner-all"><span class="ui-icon ui-icon-plusthick"></span><span class="ui-button-text">{_('Создать')} {_('набор')}</span></a></p>
	{/if}
	
	{$WidgetsDataTable}
	
{/if}

{if $params.action=="add" || $params.action=="edit"}
	<div class="whole">{$Form}</div>
{/if}

{if $params.action=="dialog"}
	{$Form}
{/if}
